package com.guoxiaochen.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UserNodeController {
    @RequestMapping(value = "/login")
    public String login(){
        return "layuibutton";
    }

    @RequestMapping(value = "/register")
    public String register(){
        return "register";
    }

    @RequestMapping(value = "/l01")
    public String l01(){
        return "01_layui布局容器";
    }

    @RequestMapping(value = "/l02")
    public String l02(){
        return "02_layui导航";
    }

    @RequestMapping(value = "/l03")
    public String l03(){
        return "03_layui选项卡";
    }

    @RequestMapping(value = "/l04")
    public String l04(){
        return "04_layui表格";
    }

    @RequestMapping(value = "/l05")
    public String l05(){
        return "05_layui表单";
    }

    @RequestMapping(value = "/l06")
    public String l06(){
        return "06_layui弹出层";
    }



//    //去注册页面
////    @GetMapping("/register")
////    public String toRegister(){
////        return "register";
////    }


//    //去登陆页面
//    @GetMapping("/login")
//    public String toLogin(){
//        return "login";
//    }

    @RequestMapping(value = "/")
    public String toLogin(){
        return "login";
    }

    @RequestMapping(value = "/button")
    public String button(){
        return "layuibutton";
    }

}
